﻿using System.Collections;
using System.Collections.Generic;
using ZGUIFW;
using UnityEngine;

namespace DemoProject
{
    public class MarketUIForm : BaseUIForm
	{
		private void Awake()
		{
			CurrentType.UiFormType = UIFormType.PopUP;
			CurrentType.UiFormShowMode = UIFormShowMode.ReverseChange;
			CurrentType.UiFormLucenyType = UIFormLucenyType.ImPenetrable;
			RigisterBtnEvent("CloseBtn", (go) => CloseUIForm());
			RigisterBtnEvent("Button (1)", prop => OpenUIForm("PropDetailUIForm", "ShowPropDetail","type", "盔甲详情信息"));
			RigisterBtnEvent("Button (2)", prop => OpenUIForm("PropDetailUIForm", "ShowPropDetail", "type", "裤子详情信息"));
			RigisterBtnEvent("Button (3)", prop => OpenUIForm("PropDetailUIForm", "ShowPropDetail", "type", "帽子详情信息"));
			RigisterBtnEvent("Button (4)", prop => OpenUIForm("PropDetailUIForm", "ShowPropDetail", "type", "法杖详情信息"));
		}
		protected void OpenUIForm(string uiFormName, string msgType, string msgKey, string msgValue)
		{
			SendMssage(msgType, msgKey, msgValue);
			base.OpenUIForm(uiFormName);
		}
	}

}

